package com.tz.actions;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;


/**
 * Created by Administrator on 16-9-28.
 */
@Namespace("/user")
@Results({
        @Result(name = "success", location = "/user-info.jsp"),
        @Result(name = "xx", location = "/user-xxx.jsp")
})
public class UserInfoAction {

    @Action("info")
    public String execute(){
        //...
        return "success";
    }

}
